package com.itheima.ydd.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (YddAdvimg)实体类
 *
 * @author King
 * @since 2022-11-13 11:15:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YddAdvimg implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 广告图位置，关联广告位id
     */
    private String advimgpos;
    /**
     * 广告图地址
     */
    private String advimgsrc;
    /**
     * 广告图描述
     */
    private String advimgdesc;
    /**
     * 广告图链接
     */
    private String advimglink;
    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @JsonProperty("default_data")
    @JSONField(name ="default_data")
    private String defaultData;

}

